from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('ts.views',
    # Examples:
    url(r'^$', 'home', name='home'),
    url(r'^(?P<tp_name>[\w|\W]+)/view$', 'viewTP'),
    url(r'^(?P<tp_name>[\w|\W]+)/delete$', 'delTP'),
    url(r'^(?P<tp_name>[\w|\W]+)/factor/add$', 'addFactor'),
    url(r'^(?P<tp_name>[\w|\W]+)/factor/(?P<f_name>\w+)/delete$', 'delFactor'),
    url(r'^(?P<tp_name>[\w|\W]+)/factor/(?P<f_name>\w+)/edit$', 'editFactor'),
    url(r'^(?P<tp_name>[\w|\W]+)/gene/add$', 'addGene'),
    url(r'^(?P<tp_name>[\w|\W]+)/gene/(?P<g_name>\w+)/edit$', 'editGene'),
    url(r'^(?P<tp_name>[\w|\W]+)/gene/(?P<g_name>\w+)/delete$', 'delGene'),
    url(r'^(?P<tp_name>[\w|\W]+)/toTranssys$', 'toTranssys'),
    url(r'^(?P<tp_name>[\w|\W]+)/codeTranssys$', 'codeTranssys'),
    url(r'^(?P<tp_name>[\w|\W]+)/toPDF$', 'getPDF'),
    url(r'^(?P<tp_name>[\w|\W]+)/toImage$', 'getImage'),
    url(r'^(?P<tp_name>[\w|\W]+)/createTranssysInstance$', 'createTranssysInstance'),
    url(r'^(?P<tp_name>[\w|\W]+)/downloadSimulationData$', 'downloadSimulationData'),
    url(r'^(?P<tp_name>[\w|\W]+)/plotTimeSeries/(?P<f_name>\w+)/(?P<thumbnail>\w+).png$', 'plotTimeSeries'),
    url(r'^(?P<tp_name>[\w|\W]+)/plotAttractors/(?P<f_name1>\w+)/(?P<f_name2>\w+)/(?P<thumbnail>\w+).png$', 'plotAttractors'),
    url(r'^(?P<tp_name>[\w|\W]+)/dataset/(?P<dt_name>\w+)$', 'getDataset'),
    url(r'^(?P<tp_name>[\w|\W]+)/identifyAttractors$', 'identifyAttractors'),
    url(r'^addTranssysProgram$', 'addTranssysProgram'),
    url(r'^uploadTranssysProgram$', 'uploadTranssysProgram'),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)
